package com.api.shopapi.service;


import com.api.shopapi.entity.Cart;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author maochuan
 */
@Service
public interface CartService {

    int insert(Cart cart);

    int update(Cart cart);

    int delete(String cartCode);

    List<Cart> getList();

    Cart getByCartCode(String cartCode);

    Cart getByUserCodeBusinessTopCode(String userCode, String businessTopCode);

    Cart getByUserCodeGovernmentCode(String userCode, String governmentCode);

}
